.panel {
  position: relative;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 1rem;
  background: #ffffff;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  box-shadow: 0.06rem 0.06rem 0.5rem #579693;
  border-radius: 0.5rem;
  transition: all 0.3s;
}
.panel div {
  margin-bottom: 0.6rem;
}
.panel div:last-child {
  margin-bottom: 0;
}
.panel * {
  font-size: 1rem;
}
.panel > * > input,
.panel > * > button {
  margin-right: 1rem;
}
.panel span {
  text-shadow: 0.01em 0.01em 0.08em #b5eaed;
}
.panel button {
  text-shadow: 0.01em 0.01em 0.08em #088389;
}
.panel input {
  text-shadow: 0.01em 0.01em 0.06em #000;
}
.panel div > span {
  position: relative;
  margin: 0 1rem;
}
.panel div > span::before {
  content: '';
  position: absolute;
  top: 0;
  right: calc(100% + 0.4rem);
  width: 0.2rem;
  height: 100%;
  background: #29b8d8;
  border-radius: 0.5rem;
}
.panel input {
  color: #989898;
  background: none;
  outline: none;
  border: none;
  border-bottom: 0.2rem solid #76a7ba;
  text-indent: 0.5em;
}
.panel input::placeholder {
  color: #85858599;
  text-shadow: none;
}
.panel button {
  background: #93b0db;
  color: #fff;
  border: none;
  padding: 0.2rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0.05rem 0.05rem 0.4rem #7577b4;
  transition: all 0.2s;
}
.panel button:hover {
  color: #eee;
  background: #5b98d0;
  box-shadow: 0.05rem 0.05rem 0.4rem #6879a5;
}
.panel button:active {
  color: #ccc;
  background: #5a76a3;
}
.panel button[disabled] {
  color: #eee !important;
  background: #ccc !important;
}
.panel#opt-panel {
  color: #43698e;
}
.panel#opt-panel:hover {
  background: #e2f8ffbf;
  box-shadow: 0.1rem 0.1rem 0.8rem #43698e;
}
.panel#ws-panel {
  margin-top: 0;
  background: #98c379;
  border-radius: 0 0 0.5rem 0.5rem;
}
.panel#ws-panel * {
  color: #fff;
  text-shadow: none;
}
.panel#ws-panel span::before {
  background: #3cba88;
  box-shadow: 0.01rem 0.01rem 0.2rem #30e339;
}
.panel#ws-panel input {
  border-bottom: 0.2rem solid #709059;
}
.panel#ws-panel input::placeholder {
  color: #ffffff99;
}
.panel#ws-panel button {
  background: #b1db93;
  box-shadow: 0.05rem 0.05rem 0.4rem #8fb475;
}
.panel#ws-panel button:hover {
  color: #eee;
  background: #9fc683;
  box-shadow: 0.05rem 0.05rem 0.4rem #81a568;
}
.panel#ws-panel button:active {
  color: #ccc;
  background: #77985f;
}
.panel#ws-panel:hover {
  background: #add78f;
  box-shadow: 0.1rem 0.1rem 0.8rem #638e43;
}
.panel#ws-panel .ws-connect {
  display: flex;
}
.panel#ws-panel .ws-connect input {
  flex-grow: 0;
}
#srcPath {
  margin-left: 2em;
}
#paint-wrapper {
  position: relative;
  top: 1rem;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: 0.15rem solid #282c34;
  margin-bottom: 24rem;
}
#px-container,
#mask-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
#px-container ol,
#mask-container ol {
  padding: 0;
}
#px-container ol,
#mask-container ol,
#px-container ol *,
#mask-container ol * {
  /* 消除默认间隙 */
  font-size: 0;
}
#px-container .px,
#mask-container .px {
  position: relative;
  list-style-type: none;
  display: inline-block;
  height: 100%;
  min-width: 1px;
  min-height: 1px;
}
#paint-wrapper.individual #px-container ol::before,
#paint-wrapper.individual #mask-container ol::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
#paint-wrapper.individual .px {
  transition: all 0.3s;
  transform: scale(1);
}
#paint-wrapper.individual .px::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #00000000;
}
#paint-wrapper.individual.idle .px {
  transform: scale(0.95);
}
#paint-wrapper.individual.idle .px:hover::after {
  background: #00000033;
  border: 1px solid #fff;
}
#paint-wrapper.individual.idle .px:hover {
  transform: scale(0.98);
}
#mask-container {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  border: none;
  /* background: none; */
}
#result-render {
  position: absolute;
  bottom: 5px;
  right: 20px;
  z-index: 10;
}
#result-render img {
  border-radius: 0.5rem;
}
#follow-cursor {
  position: absolute;
  opacity: 1;
  border-radius: 50%;
  pointer-events: none;
}
#edit-wrapper {
  display: flex;
  justify-content: flex-start;
  width: 90%;
  height: 60rem;
  margin: 0 auto;
  background: #ffffffdd;
  box-shadow: 0 -0.1rem 0.5rem #579693;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 1rem;
  box-sizing: border-box;
}
#edit-wrapper img {
  height: 100%;
}
#edit-body {
  overflow: auto;
  margin-left: 5%;
  flex: 1 1 auto;
  padding-bottom: 4rem;
}
#edit-body li:first-child div {
  margin-left: 2em;
}
#edit-body li:first-child div i {
  margin-left: 1em;
}
#edit-body li:first-child input {
  width: 4em;
}
#edit-body li:first-child button {
  margin-left: 2em;
}
#edit-body li {
  display: flex;
  margin-bottom: 1rem;
}
#edit-body li span {
  display: inline-block;
  width: 4rem;
  height: 4rem;
}
#edit-body li .color-block {
  margin-right: 5%;
}
@media screen and (max-width: 1280px) {
  .panel {
    width: 100%;
    border-radius: 0;
  }
}
